/**
 *Copyright (c) 2024 watereyes
 * safetymanagement is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
package com.koron.emergency.service.api;

import com.koron.common.bean.StaffBean;
import com.koron.common.domain.DataBean;
import com.koron.emergency.domain.EmergencyMaterial;
import com.koron.emergency.domain.MaterialCheckRecord;
import com.koron.emergency.domain.MaterialCheckRelation;
import com.koron.hiddendanger.domain.HiddenDangerDiscovery;
import org.springframework.web.multipart.MultipartFile;
import org.swan.bean.MessageBean;

import java.util.List;

public interface MaterialCheckRecordService {

    MessageBean<String> save(MaterialCheckRecord checkRecord);

    MessageBean<Integer> delete(String id);

    MessageBean<MaterialCheckRecord> queryOne(String id);

    MessageBean<DataBean<MaterialCheckRecord>> queryByCondition(String corpCode,String title,  String checkEmployeeName,  String executerName,
                                                                 Integer status,  Integer start, Integer rows , String keyword);

    MessageBean<Integer> saveCheckAttachment( String id,MultipartFile[] files,String keepfiles,String delFiles);

    MessageBean<?> fileList(String id);

    MessageBean<DataBean<EmergencyMaterial>> queryCheckDeatils(String corpCode,String checkRecordId, String checkEmployeeCode, Integer start, Integer rows);

    MessageBean<Integer> saveRealtion(StaffBean user, MaterialCheckRelation relation);


    MessageBean<?> viewReport(String checkRecordId);

    MessageBean<Integer> commit(StaffBean user,String checkRecordId,String jobTaskId);

    MessageBean<MaterialCheckRelation> queryRelationDeatils(String materialId,String materialCheckId);

    List<MaterialCheckRecord> exportList(StaffBean user, String corpCode, String title, String checkEmployeeName, String executerName, Integer status);

    MessageBean<EmergencyMaterial> queryOneCheckDeatils(String corpCode, String checkRecordId, String checkEmployeeCode, String emergencyMaterialId);

    MessageBean<?> saveCheckDanger(StaffBean user, String materialCheckRecordId, String materialId, HiddenDangerDiscovery discovery, String delFileAddress, String keepFileAddress, MultipartFile[] files);

    MessageBean<DataBean<HiddenDangerDiscovery>> queryOneDeviceOfDanger(String corpCode, String materialId, String materialCheckRecordId, Integer page, Integer pageSize);
}
